﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace NP.BPMReportPlatform.HR.Dto
{
    /// <summary>
    /// 交通费额度配置维护 批量导入
    /// IsLabelingError：是否标注数据错误
    /// </summary>
    [ExcelImporter(IsLabelingError = true)]
    public class ImportTrafficFeeLimitConfigInput
    {
        /// <summary>
        /// 类型
        /// </summary>
        [ImporterHeader(Name = "类型")]
        [Required(ErrorMessage = "类型不能为空")]
        public string Type { get; set; }

        /// <summary>
        /// 类别1(组织)
        /// </summary>
        [ImporterHeader(Name = "类别1(组织)")]
        [Required(ErrorMessage = "类别1(组织)不能为空")]
        public string Category1 { get; set; }

        /// <summary>
        /// 类别2(职级序列)
        /// </summary>
        [ImporterHeader(Name = "类别2(职级序列)")]
        public string Category2 { get; set; }

        /// <summary>
        /// 类别3(职务)
        /// </summary>
        [ImporterHeader(Name = "类别3(职务)")]
        public string Category3 { get; set; }

        /// <summary>
        /// 类别4(标准岗位)
        /// </summary>
        [ImporterHeader(Name = "类别4(标准岗位)")]
        public string Category4 { get; set; }

        /// <summary>
        /// 额度
        /// </summary>
        [ImporterHeader(Name = "额度")]
        [Required(ErrorMessage = "额度不能为空")]
        public string Limit { get; set; }

        /// <summary>
        /// 有效开始日期
        /// </summary>
        [ImporterHeader(Name = "有效期（开始日期）")]
        [Required(ErrorMessage = "有效期（开始日期）不能为空")]
        public string ExpiryDateStart { get; set; }

        /// <summary>
        /// 有效结束日期
        /// </summary>
        [ImporterHeader(Name = "有效期（截止日期）")]
        public string ExpiryDateEnd { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ImporterHeader(Name = "备注")]
        public string Remark { get; set; }
    }
}
